package com.snail.billing.net;

import java.util.ArrayList;
import java.util.List;

import org.apache.http.NameValuePair;
import org.apache.http.message.BasicNameValuePair;

import com.android.net.HttpSession;

public abstract class BillingHttpSession extends HttpSession {

	public static final String JSON = "json";

	private List<NameValuePair> billingPairList = new ArrayList<NameValuePair>();

	public void addBillingPair(String name, String value) {
		if (name != null && value != null) {
			addBillingPair(new BasicNameValuePair(name, value));
		}
	}

	public void addBillingPair(NameValuePair billingPair) {
		billingPairList.add(billingPair);
	}

	public List<NameValuePair> getBillingPairList() {
		return billingPairList;
	}

	public void buildParamPair() {
	}

	public abstract BillingSecurity getSecurity();

}
